package com.sgcc.ln.pmos.e_ln_personalcenter.activity;

import android.view.View;
import android.widget.ImageView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.sgcc.ln.pmos.arouter.personalcenter.PersonalCenterArouterPath;
import com.sgcc.ln.pmos.common.base.BasePresenter;
import com.sgcc.ln.pmos.common.base.MvpBaseActivity;
import com.sgcc.ln.pmos.common.utils.DialogUtil;
import com.sgcc.ln.pmos.common.widget.TitleBar;
import com.sgcc.pmos.nativesdk.R;

/**
 * 关于我们
 */
@Route(path = PersonalCenterArouterPath.PERSONALCENTER_ABOUTUS)
public class AboutUsActivity extends MvpBaseActivity {

    private TitleBar mTitleBar;
//    private TextView mVersionCode;

    @Override
    protected int getContentViewLayoutID() {
        return R.layout.activity_about_us_ln;
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }

    @Override
    protected void initViews() {
        mTitleBar = (TitleBar) findViewById(R.id.title_bar);
        ImageView img = findViewById(R.id.img);
        img.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                DialogUtil.showImageDialog(mContext, img, R.mipmap.icon_ln);
            }
        });
        mTitleBar.setTitle("关于我们");
        mTitleBar.setRightIcon(R.mipmap.go_main, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                goMainActivity();
            }
        });
    }
}
